package com.djzhou.gmms.service.email;


import com.djzhou.gmms.model.email.TbEmail;
import com.djzhou.gmms.model.entity.PageBean;
import com.djzhou.gmms.service.base.BaseService;

public interface EmailService extends BaseService<TbEmail>{
	/**
	 * 查询收件箱
	 * @return
	 */
	public PageBean<TbEmail> queryReceiver(Integer userId,int pageSize, int currentPage);
	/**
	 * 查询发件箱
	 * @param userId
	 * @return
	 */
	public PageBean<TbEmail> querySender(Integer userId,int pageSize, int currentPage);
	/**
	 * 查询星级邮件
	 * @param userId
	 * @return
	 */
	public PageBean<TbEmail> queryStar(Integer userId,int pageSize, int currentPage);
	/**
	 * 查询已删除邮件
	 * @param userId
	 * @return
	 */
	public PageBean<TbEmail> queryDelete(Integer userId,int pageSize, int currentPage);
	/**
	 * 查询草稿邮件
	 * @param userId
	 * @return
	 */
	public PageBean<TbEmail> queryDraft(Integer userId,int pageSize, int currentPage);
	/**
	 * 接收方删除
	 * @param userId
	 * @return
	 */
	public void deleteReceiver(Integer emailId);
	/**
	 * 发送方删除
	 * @param userId
	 * @return
	 */
	public void deleteSender(Integer emailId);
	/**
	 * 删除草稿邮件
	 * @param userId
	 * @return
	 */
	public void deleteDraft(Integer emailId);
	/**
	 * 彻底删除邮件
	 * @param userId
	 * @return
	 */
	public void deleteDelete(Integer emailId);
	/**
	 * 查询今日邮件数量
	 * @param userId
	 * @return
	 */
	public int queryTodaySum(Integer userId);
	/**
	 * 查询未读邮件数量
	 * @param userId
	 * @return
	 */
	public int queryUnreadSum(Integer userId);
	/**
	 * 查询收件箱邮件数量
	 *FOR JEasyFrame
	 * @param userId
	 * @return
	 */
	public int queryReceiverCount(Integer userId);
}
